aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snap...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-26 22:40:20 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-26 22:40:20 +0100
commit028ef9e1b1502b5380f6110f1870808262129623 (patch)
treec3b8df203e238a6a3db675b6f1cc2ea3ad3d8f69 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent17bcdbfef0e40bedd8e8c16e3b6eb6d134635d49 (diff)
Generate WASM functions for Shed functions
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected36
1 files changed, 36 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
new file mode 100644
index 00000000..3485b7f0
--- /dev/null
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -0,0 +1,36 @@
+
+module.wasm: file format wasm 0x1
+
+Section Details:
+
+Type[2]:
+ - type[0] (i32) -> i32
+ - type[1] () -> nil
+Import[2]:
+ - table[0] type=funcref initial=0 <- env.__indirect_function_table
+ - memory[0] pages: initial=0 <- env.__linear_memory
+Function[2]:
+ - func[0] sig=0 <shed__function__f__0>
+ - func[1] sig=1 <f>
+Code[2]:
+ - func[0] size=5 <shed__function__f__0>
+ - func[1] size=2 <f>
+Custom:
+ - name: "name"
+ - func[0] <shed__function__f__0>
+ - func[1] <f>
+ - func[0] local[0] <closurePointer__0>
+Custom:
+ - name: "linking"
+ - symbol table [count=2]
+ - 0: F <shed__function__f__0> func=0 [ binding=global vis=default ]
+ - 1: F <f> func=1 [ binding=global vis=default ]
+
+Code Disassembly:
+
+00006c func[0] <shed__function__f__0>:
+ 00006d: 41 00 | i32.const 0
+ 00006f: 0f | return
+ 000070: 0b | end
+000076 func[1] <f>:
+ 000077: 0b | end \ No newline at end of file